/*
 * @Description:
 * @Autor: luoyon
 * @Date: 2022-04-21 14:58:14
 * @LastEditTime: 2020-12-21 14:58:14
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
export const getShipmentData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrder/queryselectlist`, { params });
export const getDetailData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrder/queryselectlistDetail`, { params });
export const getDetailTool = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrder/queryselectTool`, { params });
export const getListForExport = params => {
  return axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrder/getListForExport`, {
    params,
    responseType: 'blob'
  });
}

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
//备件订单明细导出
export const detailExport = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrder/detailExport`, {
  params,
  responseType: 'blob'
});

